package hu.test.atacama;

import java.io.Serializable;

import android.os.Parcel;
import android.os.Parcelable;

public class Coordinates implements Parcelable, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String latitude;

	private String longitude;

	private String time;

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public Coordinates() {

	}

	public Coordinates(Double latitude, Double longitude, Long time) {
		this.latitude = Double.toString(latitude);
		this.longitude = Double.toString(longitude);
		this.time = Long.toString(time);
	}

	protected Coordinates(Parcel in) {
		latitude = in.readString();
		longitude = in.readString();
		time = in.readString();
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(latitude);
		dest.writeString(longitude);
		dest.writeString(time);
	}

	public static final Parcelable.Creator<Coordinates> CREATOR = new Parcelable.Creator<Coordinates>() {
		public Coordinates createFromParcel(Parcel in) {
			return new Coordinates(in);
		}

		public Coordinates[] newArray(int size) {
			return new Coordinates[size];
		}
	};
}
